package framework.account;

import framework.customer.ICustomer;

import java.util.List;
import java.util.Observer;

public interface IAccount {

    void addObserver(Observer o);

    public String getType();

    public void addInterest();

    public float getInterestRate();

    public boolean processTransaction(float amount);

    public void addTransaction(IEntry tr);

    List<IEntry> getTransactionHistory();

    public double getPrevBalance();

    public void setPrevBalance(double prevBalance);

    String getAccountNo();

    public float getBalance();

    public ICustomer getCustomer();

    public void setCustomer(ICustomer customer);

}
